﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Axis.Web.Views.SKDV;

namespace Axis.Web.Views.YKienTieuDung
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string CateID = "24";
            if (Request.QueryString["ID"] != null)
                CateID = Request.QueryString["ID"].ToString();
            if (Page.RouteData.Values["ID"] != null)
                CateID = Page.RouteData.Values["ID"] as string;

            StringBuilder scriptServerConfig = new StringBuilder();
            scriptServerConfig.AppendFormat("var CateID={0};\n", CateID);
            CSKDVUI objUI = new CSKDVUI();
            string titlePage = objUI.GetTitlePage(CateID);
            if (titlePage != "")
                ltrTitlePage.Text = titlePage;
            Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "ServerConfig",
                                  scriptServerConfig.ToString(), true);


        }
    }
}